package luj.game.robot.internal.net.http.receive;

enum HttpParamValueParser {
  GET;

  @SuppressWarnings("unchecked")
  public <T> T parse(Class<T> type, String valStr) {
    if (type == Long.class) {
      return (T) Long.valueOf(valStr);
    }

    throw new UnsupportedOperationException("不支持的类型：" + type.getName());
  }
}
